package com.cug.campus_sh_market_server.entity.param.goodstrading;

import com.cug.campus_sh_market_server.entity.po.BaseEntity;
import com.cug.campus_sh_market_server.util.QueryWrapperUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 用户商品购买请求查询条件对象
 * </p>
 *
 * @author sxt
 * @since 2022-05-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "GoodsTrading条件查询对象", description = "用户商品购买请求查询条件对象")
public class GoodsTradingQueryParam extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品类别")
    private Integer goodsType;

    @ApiModelProperty(value = "申请状态（0: 待卖家审核, 1: 交易成功, 2: 卖家拒绝）")
    private Integer status;

    @NotNull
    @QueryWrapperUtil.Ignore
    @ApiModelProperty(value = "查询视角状态（0: 卖家视角, 1: 买家视角）")
    private Integer viewpoint = 0;
}
